print star pattern in c using for loop